package com.fir.my.batis.plus.service.impl;

import com.fir.my.batis.plus.entity.SysDept;
import com.fir.my.batis.plus.mapper.SysDeptMapper;
import com.fir.my.batis.plus.service.ISysDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 部门表 服务实现类
 * </p>
 *
 * @author fir
 * @since 2024-05-20 05:55:14
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements ISysDeptService {


    @Resource
    private SysDeptMapper sysDeptMapper;

    @Override
    public Boolean saveSd(SysDept sysDept){

        return sysDeptMapper.insert(sysDept) == 1;
    }
}
